
'===============================================================================
'  Generated From - VbNet_SQL_dOOdads_BusinessEntity.vbgen
' 
'  ** IMPORTANT  **
'  How to Generate your stored procedures:
' 
'  SQL        = SQL_StoredProcs.vbgen
'  ACCESS     = Access_StoredProcs.vbgen
'  ORACLE     = Oracle_StoredProcs.vbgen
'  FIREBIRD   = FirebirdStoredProcs.vbgen
'  POSTGRESQL = PostgreSQL_StoredProcs.vbgen
'
'  The supporting base class SqlClientEntity is in the Architecture directory in "dOOdads".
'  
'  This object is 'MustInherit' which means you need to inherit from it to be able
'  to instantiate it.  This is very easilly done. You can Override properties and
'  methods in your derived class, this allows you to regenerate this class at any
'  time and not worry about overwriting custom code. 
'
'  NEVER EDIT THIS FILE.
'
'  Public Class YourObject
'    Inherits _YourObject
'
'  End Class
'
'===============================================================================

' Generated by MyGeneration Version # (1.3.0.3)

Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Collections
Imports System.Collections.Specialized

Imports MyGeneration.dOOdads

NameSpace ClassSigeco

Public MustInherit Class _si_mercaderiaListaPrecio_detalle
	Inherits SqlClientEntity

		Public Sub New() 
			Me.QuerySource = "si_mercaderiaListaPrecio_detalle"
			Me.MappingName = "si_mercaderiaListaPrecio_detalle"
		End Sub

	'=================================================================
	'  Public Overrides Sub AddNew()
	'=================================================================
	'
	'=================================================================
	Public Overrides Sub AddNew()
		MyBase.AddNew()
				
	End Sub
	
	Public Overrides Sub FlushData()
		Me._whereClause = nothing
		Me._aggregateClause = nothing		
		MyBase.FlushData()
	End Sub
	
		
	'=================================================================
	'  	Public Function LoadAll() As Boolean
	'=================================================================
	'  Loads all of the records in the database, and sets the currentRow to the first row
	'=================================================================
	Public Function LoadAll() As Boolean
	
		Dim parameters As ListDictionary = Nothing
		
		
    	Return MyBase.LoadFromSql("[" + Me.SchemaStoredProcedure + "proc_si_mercaderiaListaPrecio_detalleLoadAll]", parameters)
		
	End Function

	'=================================================================
	' Public Overridable Function LoadByPrimaryKey()  As Boolean
	'=================================================================
	'  Loads a single row of via the primary key
	'=================================================================
        Public Overridable Function LoadByPrimaryKey(ByVal IdListaPrecioDetalle As Integer) As Boolean

            Dim parameters As ListDictionary = New ListDictionary()
            parameters.Add(_si_mercaderiaListaPrecio_detalle.Parameters.IdListaPrecioDetalle, IdListaPrecioDetalle)


            Return MyBase.LoadFromSql("[" + Me.SchemaStoredProcedure + "proc_si_mercaderiaListaPrecio_detalleLoadByPrimaryKey]", parameters)

        End Function

#Region "Parameters"
        Protected Class Parameters

            Public Shared ReadOnly Property IdListaPrecioDetalle() As SqlParameter
                Get
                    Return New SqlParameter("@IdListaPrecioDetalle", SqlDbType.Int, 0)
                End Get
            End Property

            Public Shared ReadOnly Property IdListaPrecio() As SqlParameter
                Get
                    Return New SqlParameter("@IdListaPrecio", SqlDbType.Int, 0)
                End Get
            End Property

            Public Shared ReadOnly Property IdMercaderia() As SqlParameter
                Get
                    Return New SqlParameter("@IdMercaderia", SqlDbType.Int, 0)
                End Get
            End Property

            Public Shared ReadOnly Property Precio1() As SqlParameter
                Get
                    Return New SqlParameter("@Precio1", SqlDbType.Decimal, 0)
                End Get
            End Property

            Public Shared ReadOnly Property Precio2() As SqlParameter
                Get
                    Return New SqlParameter("@Precio2", SqlDbType.Decimal, 0)
                End Get
            End Property

            Public Shared ReadOnly Property Precio3() As SqlParameter
                Get
                    Return New SqlParameter("@Precio3", SqlDbType.Decimal, 0)
                End Get
            End Property

        End Class
#End Region

#Region "ColumnNames"
        Public Class ColumnNames

            Public Const IdListaPrecioDetalle As String = "idListaPrecioDetalle"
            Public Const IdListaPrecio As String = "idListaPrecio"
            Public Const IdMercaderia As String = "idMercaderia"
            Public Const Precio1 As String = "precio1"
            Public Const Precio2 As String = "precio2"
            Public Const Precio3 As String = "precio3"

            Public Shared Function ToPropertyName(ByVal columnName As String) As String

                If ht Is Nothing Then

                    ht = New Hashtable

                    ht(IdListaPrecioDetalle) = _si_mercaderiaListaPrecio_detalle.PropertyNames.IdListaPrecioDetalle
                    ht(IdListaPrecio) = _si_mercaderiaListaPrecio_detalle.PropertyNames.IdListaPrecio
                    ht(IdMercaderia) = _si_mercaderiaListaPrecio_detalle.PropertyNames.IdMercaderia
                    ht(Precio1) = _si_mercaderiaListaPrecio_detalle.PropertyNames.Precio1
                    ht(Precio2) = _si_mercaderiaListaPrecio_detalle.PropertyNames.Precio2
                    ht(Precio3) = _si_mercaderiaListaPrecio_detalle.PropertyNames.Precio3

                End If

                Return CType(ht(columnName), String)

            End Function

            Private Shared ht As Hashtable = Nothing
        End Class
#End Region

#Region "PropertyNames"
        Public Class PropertyNames

            Public Const IdListaPrecioDetalle As String = "IdListaPrecioDetalle"
            Public Const IdListaPrecio As String = "IdListaPrecio"
            Public Const IdMercaderia As String = "IdMercaderia"
            Public Const Precio1 As String = "Precio1"
            Public Const Precio2 As String = "Precio2"
            Public Const Precio3 As String = "Precio3"

            Public Shared Function ToColumnName(ByVal propertyName As String) As String

                If ht Is Nothing Then

                    ht = New Hashtable

                    ht(IdListaPrecioDetalle) = _si_mercaderiaListaPrecio_detalle.ColumnNames.IdListaPrecioDetalle
                    ht(IdListaPrecio) = _si_mercaderiaListaPrecio_detalle.ColumnNames.IdListaPrecio
                    ht(IdMercaderia) = _si_mercaderiaListaPrecio_detalle.ColumnNames.IdMercaderia
                    ht(Precio1) = _si_mercaderiaListaPrecio_detalle.ColumnNames.Precio1
                    ht(Precio2) = _si_mercaderiaListaPrecio_detalle.ColumnNames.Precio2
                    ht(Precio3) = _si_mercaderiaListaPrecio_detalle.ColumnNames.Precio3

                End If

                Return CType(ht(propertyName), String)

            End Function

            Private Shared ht As Hashtable = Nothing

        End Class
#End Region

#Region "StringPropertyNames"
        Public Class StringPropertyNames

            Public Const IdListaPrecioDetalle As String = "s_IdListaPrecioDetalle"
            Public Const IdListaPrecio As String = "s_IdListaPrecio"
            Public Const IdMercaderia As String = "s_IdMercaderia"
            Public Const Precio1 As String = "s_Precio1"
            Public Const Precio2 As String = "s_Precio2"
            Public Const Precio3 As String = "s_Precio3"

        End Class
#End Region

#Region "Properties"
        Public Overridable Property IdListaPrecioDetalle() As Integer
            Get
                Return MyBase.Getint(ColumnNames.IdListaPrecioDetalle)
            End Get
            Set(ByVal Value As Integer)
                MyBase.Setint(ColumnNames.IdListaPrecioDetalle, Value)
            End Set
        End Property

        Public Overridable Property IdListaPrecio() As Integer
            Get
                Return MyBase.Getint(ColumnNames.IdListaPrecio)
            End Get
            Set(ByVal Value As Integer)
                MyBase.Setint(ColumnNames.IdListaPrecio, Value)
            End Set
        End Property

        Public Overridable Property IdMercaderia() As Integer
            Get
                Return MyBase.Getint(ColumnNames.IdMercaderia)
            End Get
            Set(ByVal Value As Integer)
                MyBase.Setint(ColumnNames.IdMercaderia, Value)
            End Set
        End Property

        Public Overridable Property Precio1() As Decimal
            Get
                Return MyBase.Getdecimal(ColumnNames.Precio1)
            End Get
            Set(ByVal Value As Decimal)
                MyBase.Setdecimal(ColumnNames.Precio1, Value)
            End Set
        End Property

        Public Overridable Property Precio2() As Decimal
            Get
                Return MyBase.Getdecimal(ColumnNames.Precio2)
            End Get
            Set(ByVal Value As Decimal)
                MyBase.Setdecimal(ColumnNames.Precio2, Value)
            End Set
        End Property

        Public Overridable Property Precio3() As Decimal
            Get
                Return MyBase.Getdecimal(ColumnNames.Precio3)
            End Get
            Set(ByVal Value As Decimal)
                MyBase.Setdecimal(ColumnNames.Precio3, Value)
            End Set
        End Property


#End Region
	
	#Region "String Properties" 

		Public Overridable Property s_IdListaPrecioDetalle As String
			Get
				If Me.IsColumnNull(ColumnNames.IdListaPrecioDetalle) Then
					Return String.Empty
				Else
					Return MyBase.GetintAsString(ColumnNames.IdListaPrecioDetalle)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.IdListaPrecioDetalle)
				Else
					Me.IdListaPrecioDetalle = MyBase.SetintAsString(ColumnNames.IdListaPrecioDetalle, Value)
				End If
			End Set
		End Property

		Public Overridable Property s_IdListaPrecio As String
			Get
				If Me.IsColumnNull(ColumnNames.IdListaPrecio) Then
					Return String.Empty
				Else
					Return MyBase.GetintAsString(ColumnNames.IdListaPrecio)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.IdListaPrecio)
				Else
					Me.IdListaPrecio = MyBase.SetintAsString(ColumnNames.IdListaPrecio, Value)
				End If
			End Set
		End Property

		Public Overridable Property s_IdMercaderia As String
			Get
				If Me.IsColumnNull(ColumnNames.IdMercaderia) Then
					Return String.Empty
				Else
					Return MyBase.GetintAsString(ColumnNames.IdMercaderia)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.IdMercaderia)
				Else
					Me.IdMercaderia = MyBase.SetintAsString(ColumnNames.IdMercaderia, Value)
				End If
			End Set
		End Property

		Public Overridable Property s_Precio1 As String
			Get
				If Me.IsColumnNull(ColumnNames.Precio1) Then
					Return String.Empty
				Else
					Return MyBase.GetdecimalAsString(ColumnNames.Precio1)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.Precio1)
				Else
					Me.Precio1 = MyBase.SetdecimalAsString(ColumnNames.Precio1, Value)
				End If
			End Set
		End Property

		Public Overridable Property s_Precio2 As String
			Get
				If Me.IsColumnNull(ColumnNames.Precio2) Then
					Return String.Empty
				Else
					Return MyBase.GetdecimalAsString(ColumnNames.Precio2)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.Precio2)
				Else
					Me.Precio2 = MyBase.SetdecimalAsString(ColumnNames.Precio2, Value)
				End If
			End Set
		End Property

		Public Overridable Property s_Precio3 As String
			Get
				If Me.IsColumnNull(ColumnNames.Precio3) Then
					Return String.Empty
				Else
					Return MyBase.GetdecimalAsString(ColumnNames.Precio3)
				End If
			End Get
			Set(ByVal Value As String)
				If String.Empty = value Then
					Me.SetColumnNull(ColumnNames.Precio3)
				Else
					Me.Precio3 = MyBase.SetdecimalAsString(ColumnNames.Precio3, Value)
				End If
			End Set
		End Property


	#End Region  	

	#Region "Where Clause"
    Public Class WhereClause

        Public Sub New(ByVal entity As BusinessEntity)
            Me._entity = entity
        End Sub
		
		Public ReadOnly Property TearOff As TearOffWhereParameter
			Get
				If _tearOff Is Nothing Then
					_tearOff = new TearOffWhereParameter(Me)
				End If

				Return _tearOff
			End Get
		End Property

		#Region "TearOff's"
		Public class TearOffWhereParameter

			Public Sub New(ByVal clause As WhereClause)
				Me._clause = clause
			End Sub
		
	
			Public ReadOnly Property IdListaPrecioDetalle() As WhereParameter
				Get
					Dim where As WhereParameter = New WhereParameter(ColumnNames.IdListaPrecioDetalle, Parameters.IdListaPrecioDetalle)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property

                Public ReadOnly Property IdListaPrecio() As WhereParameter
                    Get
                        Dim where As WhereParameter = New WhereParameter(ColumnNames.IdListaPrecio, Parameters.IdListaPrecio)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property

                Public ReadOnly Property IdMercaderia() As WhereParameter
                    Get
                        Dim where As WhereParameter = New WhereParameter(ColumnNames.IdMercaderia, Parameters.IdMercaderia)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property

                Public ReadOnly Property Precio1() As WhereParameter
                    Get
                        Dim where As WhereParameter = New WhereParameter(ColumnNames.Precio1, Parameters.Precio1)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property

                Public ReadOnly Property Precio2() As WhereParameter
                    Get
                        Dim where As WhereParameter = New WhereParameter(ColumnNames.Precio2, Parameters.Precio2)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property

                Public ReadOnly Property Precio3() As WhereParameter
                    Get
                        Dim where As WhereParameter = New WhereParameter(ColumnNames.Precio3, Parameters.Precio3)
                        Me._clause._entity.Query.AddWhereParameter(where)
                        Return where
                    End Get
                End Property


			Private _clause as WhereClause
		End Class
		#End Region	

		Public ReadOnly Property IdListaPrecioDetalle() As WhereParameter 
			Get
				If _IdListaPrecioDetalle_W Is Nothing Then
					_IdListaPrecioDetalle_W = TearOff.IdListaPrecioDetalle
				End If
				Return _IdListaPrecioDetalle_W
			End Get
		End Property

		Public ReadOnly Property IdListaPrecio() As WhereParameter 
			Get
				If _IdListaPrecio_W Is Nothing Then
					_IdListaPrecio_W = TearOff.IdListaPrecio
				End If
				Return _IdListaPrecio_W
			End Get
		End Property

		Public ReadOnly Property IdMercaderia() As WhereParameter 
			Get
				If _IdMercaderia_W Is Nothing Then
					_IdMercaderia_W = TearOff.IdMercaderia
				End If
				Return _IdMercaderia_W
			End Get
		End Property

		Public ReadOnly Property Precio1() As WhereParameter 
			Get
				If _Precio1_W Is Nothing Then
					_Precio1_W = TearOff.Precio1
				End If
				Return _Precio1_W
			End Get
		End Property

		Public ReadOnly Property Precio2() As WhereParameter 
			Get
				If _Precio2_W Is Nothing Then
					_Precio2_W = TearOff.Precio2
				End If
				Return _Precio2_W
			End Get
		End Property

		Public ReadOnly Property Precio3() As WhereParameter 
			Get
				If _Precio3_W Is Nothing Then
					_Precio3_W = TearOff.Precio3
				End If
				Return _Precio3_W
			End Get
		End Property

		Private _IdListaPrecioDetalle_W As WhereParameter = Nothing
		Private _IdListaPrecio_W As WhereParameter = Nothing
		Private _IdMercaderia_W As WhereParameter = Nothing
		Private _Precio1_W As WhereParameter = Nothing
		Private _Precio2_W As WhereParameter = Nothing
		Private _Precio3_W As WhereParameter = Nothing

			Public Sub WhereClauseReset()

			_IdListaPrecioDetalle_W = Nothing
			_IdListaPrecio_W = Nothing
			_IdMercaderia_W = Nothing
			_Precio1_W = Nothing
			_Precio2_W = Nothing
			_Precio3_W = Nothing
				Me._entity.Query.FlushWhereParameters()

			End Sub
	
		Private _entity As BusinessEntity
		Private _tearOff As TearOffWhereParameter
    End Class	

	Public ReadOnly Property Where() As WhereClause
		Get
			If _whereClause Is Nothing Then
				_whereClause = New WhereClause(Me)
			End If
	
			Return _whereClause
		End Get
	End Property
	
	Private _whereClause As WhereClause = Nothing	
#End Region	

#Region "Aggregate Clause"
    Public Class AggregateClause

        Public Sub New(ByVal entity As BusinessEntity)
            Me._entity = entity
        End Sub
		
		Public ReadOnly Property TearOff As TearOffAggregateParameter
			Get
				If _tearOff Is Nothing Then
					_tearOff = new TearOffAggregateParameter(Me)
				End If

				Return _tearOff
			End Get
		End Property

		#Region "AggregateParameter TearOff's"
		Public class TearOffAggregateParameter

			Public Sub New(ByVal clause As AggregateClause)
				Me._clause = clause
			End Sub
		
	
		Public ReadOnly Property IdListaPrecioDetalle() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.IdListaPrecioDetalle, Parameters.IdListaPrecioDetalle)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property

		Public ReadOnly Property IdListaPrecio() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.IdListaPrecio, Parameters.IdListaPrecio)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property

		Public ReadOnly Property IdMercaderia() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.IdMercaderia, Parameters.IdMercaderia)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property

		Public ReadOnly Property Precio1() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.Precio1, Parameters.Precio1)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property

		Public ReadOnly Property Precio2() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.Precio2, Parameters.Precio2)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property

		Public ReadOnly Property Precio3() As AggregateParameter
			Get
				Dim where As AggregateParameter = New AggregateParameter(ColumnNames.Precio3, Parameters.Precio3)
				Me._clause._entity.Query.AddAggregateParameter(where)
				Return where
			End Get
		End Property


			Private _clause as AggregateClause
		End Class
		#End Region	

		Public ReadOnly Property IdListaPrecioDetalle() As AggregateParameter 
			Get
				If _IdListaPrecioDetalle_W Is Nothing Then
					_IdListaPrecioDetalle_W = TearOff.IdListaPrecioDetalle
				End If
				Return _IdListaPrecioDetalle_W
			End Get
		End Property

		Public ReadOnly Property IdListaPrecio() As AggregateParameter 
			Get
				If _IdListaPrecio_W Is Nothing Then
					_IdListaPrecio_W = TearOff.IdListaPrecio
				End If
				Return _IdListaPrecio_W
			End Get
		End Property

		Public ReadOnly Property IdMercaderia() As AggregateParameter 
			Get
				If _IdMercaderia_W Is Nothing Then
					_IdMercaderia_W = TearOff.IdMercaderia
				End If
				Return _IdMercaderia_W
			End Get
		End Property

		Public ReadOnly Property Precio1() As AggregateParameter 
			Get
				If _Precio1_W Is Nothing Then
					_Precio1_W = TearOff.Precio1
				End If
				Return _Precio1_W
			End Get
		End Property

		Public ReadOnly Property Precio2() As AggregateParameter 
			Get
				If _Precio2_W Is Nothing Then
					_Precio2_W = TearOff.Precio2
				End If
				Return _Precio2_W
			End Get
		End Property

		Public ReadOnly Property Precio3() As AggregateParameter 
			Get
				If _Precio3_W Is Nothing Then
					_Precio3_W = TearOff.Precio3
				End If
				Return _Precio3_W
			End Get
		End Property

		Private _IdListaPrecioDetalle_W As AggregateParameter = Nothing
		Private _IdListaPrecio_W As AggregateParameter = Nothing
		Private _IdMercaderia_W As AggregateParameter = Nothing
		Private _Precio1_W As AggregateParameter = Nothing
		Private _Precio2_W As AggregateParameter = Nothing
		Private _Precio3_W As AggregateParameter = Nothing

		Public Sub AggregateClauseReset()

		_IdListaPrecioDetalle_W = Nothing
		_IdListaPrecio_W = Nothing
		_IdMercaderia_W = Nothing
		_Precio1_W = Nothing
		_Precio2_W = Nothing
		_Precio3_W = Nothing
			Me._entity.Query.FlushAggregateParameters()

		End Sub
	
		Private _entity As BusinessEntity
		Private _tearOff As TearOffAggregateParameter
    End Class	

	Public ReadOnly Property Aggregate() As AggregateClause
		Get
			If _aggregateClause Is Nothing Then
				_aggregateClause = New AggregateClause(Me)
			End If
	
			Return _aggregateClause
		End Get
	End Property
	
	Private _aggregateClause As AggregateClause = Nothing	
#End Region	

	Protected Overrides Function GetInsertCommand() As IDbCommand
	
		Dim cmd As SqlCommand = New SqlCommand
		cmd.CommandType = CommandType.StoredProcedure
		cmd.CommandText = "[" + Me.SchemaStoredProcedure + "proc_si_mercaderiaListaPrecio_detalleInsert]" 
	    
		CreateParameters(cmd)
		
		Dim p As SqlParameter
		p = cmd.Parameters(Parameters.IdListaPrecioDetalle.ParameterName)
		p.Direction = ParameterDirection.Output
    
		Return cmd 

  	End Function
	
	Protected Overrides Function GetUpdateCommand() As IDbCommand
	
		Dim cmd As SqlCommand = New SqlCommand
		cmd.CommandType = CommandType.StoredProcedure    
		cmd.CommandText = "[" + Me.SchemaStoredProcedure + "proc_si_mercaderiaListaPrecio_detalleUpdate]" 
		
		CreateParameters(cmd) 
		    
		Return cmd
	
	End Function	
	
	Protected Overrides Function GetDeleteCommand() As IDbCommand
	
		Dim cmd As SqlCommand = New SqlCommand
		cmd.CommandType = CommandType.StoredProcedure    
		cmd.CommandText = "[" + Me.SchemaStoredProcedure + "proc_si_mercaderiaListaPrecio_detalleDelete]" 
		
		Dim p As SqlParameter
		p = cmd.Parameters.Add(Parameters.IdListaPrecioDetalle)
		p.SourceColumn = ColumnNames.IdListaPrecioDetalle
		p.SourceVersion = DataRowVersion.Current

  
		Return cmd
	
	End Function	
	
	Private Sub CreateParameters(ByVal cmd As SqlCommand)
	
		Dim p As SqlParameter
		p = cmd.Parameters.Add(Parameters.IdListaPrecioDetalle)
		p.SourceColumn = ColumnNames.IdListaPrecioDetalle
		p.SourceVersion = DataRowVersion.Current

		p = cmd.Parameters.Add(Parameters.IdListaPrecio)
		p.SourceColumn = ColumnNames.IdListaPrecio
		p.SourceVersion = DataRowVersion.Current

		p = cmd.Parameters.Add(Parameters.IdMercaderia)
		p.SourceColumn = ColumnNames.IdMercaderia
		p.SourceVersion = DataRowVersion.Current

		p = cmd.Parameters.Add(Parameters.Precio1)
		p.SourceColumn = ColumnNames.Precio1
		p.SourceVersion = DataRowVersion.Current

		p = cmd.Parameters.Add(Parameters.Precio2)
		p.SourceColumn = ColumnNames.Precio2
		p.SourceVersion = DataRowVersion.Current

		p = cmd.Parameters.Add(Parameters.Precio3)
		p.SourceColumn = ColumnNames.Precio3
		p.SourceVersion = DataRowVersion.Current


	End Sub	

End Class

End NameSpace

